package practical_projects.games.submarine_war_v2;

import javax.swing.*;

public class Images {   // 图片类
    public static ImageIcon battleship;
    public static ImageIcon mainSubmarine;
    public static ImageIcon observerSubmarine;
    public static ImageIcon torpedoSubmarine;
    public static ImageIcon bomb;
    public static ImageIcon mine;
    public static ImageIcon sea;
    public static ImageIcon gameOver;

    static {    // 静态块
        battleship = new ImageIcon("img/SubmarineWar/battleship.png");
        mainSubmarine = new ImageIcon("img/SubmarineWar/minesubm.png");
        observerSubmarine = new ImageIcon("img/SubmarineWar/obsersubm.png");
        torpedoSubmarine = new ImageIcon("img/SubmarineWar/torpesubm.png");
        bomb = new ImageIcon("img/SubmarineWar/bomb.png");
        mine = new ImageIcon("img/SubmarineWar/mine.png");
        sea = new ImageIcon("img/SubmarineWar/sea.png");
        gameOver = new ImageIcon("img/SubmarineWar/gameover.png");
    }
}
